MercadoPago\Woocommerce\Gateways\AbstractGateway B

Total Complexity 76
Dependencies 7
Dependents 19
Total lines 924
Lines of code 476
Logical lines of code 159
Comment lines 266
Methods 42
Properties 12

Methods 42

Method Rating Maintainability Complexity Lines of code
getCredentialExpiredNotice()
S
48 6 34
update_option()
S
55 5 20
processReturnFail()
S
52 4 24
addMissingCredentialsNoticeAsFormField()
S
54 3 21
process_payment()
S
54 3 21
loadMelidataStoreScripts()
S
56 3 20
getAmount()
S
61 3 12
getHomologValidateNoticeOrHidden()
S
55 2 21
getAmountAndCurrency()
S
58 2 17
canAdminLoadScriptsAndStyles()
S
73 3 5
payment_scripts()
S
69 3 8
processBlocksCheckoutData()
S
63 3 10
getFeeTitle()
S
61 2 13
registerCheckoutScripts()
S
53 1 26
getActionableValue()
S
68 2 7
handleWithRejectPayment()
S
68 2 7
canCheckoutLoadScriptsAndStyles()
S
75 2 4
loadResearchComponent()
S
60 1 15
saveOrderPaymentsId()
S
65 2 9
getCommissionField()
S
59 1 15
registerDiscountAndCommissionFeesOnCart()
S
75 2 5
getDiscountField()
S
59 1 15
generate_mp_actionable_input_html()
S
60 1 14
__construct()
S
60 1 13
generate_mp_preview_html()
S
65 1 10
init_form_fields()
S
81 1 3
getRejectedPaymentErrorMessage()
S
75 1 4
get_settings_url()
S
80 1 3
generate_mp_credits_checkout_example_html()
S
65 1 10
generate_mp_tooltip_selection_html()
S
65 1 10
generate_mp_support_link_html()
S
65 1 10
isAvailable()
S
81 1 3
generate_mp_card_info_html()
S
65 1 10
generate_mp_config_title_html()
S
65 1 10
generate_mp_checkbox_list_html()
S
66 1 9
webhook()
S
70 1 6
registerAdminScripts()
S
66 1 10
getFeeText()
S
74 1 4
getCheckoutName()
S
81 1 3
payment_fields()
S
91 1 2
validate_fields()
S
82 1 3
generate_mp_toggle_switch_html()
S
64 1 10